import {request} from "@/services/request.ts";

export const getRoleList = async (oid:string)=>{
    return await request.get('/organization/role',{oid})
}
export const RoleCreate = async (params:PermissionRoleForm)=>{
    return await request.post('/organization/role',params)
}

export const RoleUpdate = async (id:number,params:PermissionRoleForm)=>{
    return await request.put(`/organization/role/${id}`,params)
}

export const RoleDelete = async (id:number)=>{
    return await request.del(`/organization/role/${id}`)
}